<?php
use  Illuminate\Database\Eloquent\Model as Eloquent; 
class model extends Eloquent{
	protected $table="users";
	protected $mod;
	public function setTable($table){
		$this->table = $table;
		$this->mod=$this;
		return $this;
	}
	//查找
	public function F($id=""){
		if($id==""){
			$data=$this->mod->first();	
		}else{
			$data=$this->mod->find($id);	
		}
		return $data;		
	}
}